<template>
  <div class="home">
<<<<<<< HEAD
    <img alt="Vue logo" src="../assets/logo.png" />
    <HelloWorld msg="Welcome to Your Vue.js App" />
=======
    <img alt="Vue logo"   @click="jumpPage" src="../assets/logo.png">
>>>>>>> 6bf8714517698cba3c843e451acfb7d17c339c11
  </div>
</template>

<script>
// @ is an alias to /src
<<<<<<< HEAD
import HelloWorld from "@/components/HelloWorld.vue";

export default {
  name: "Home",
  components: {
    HelloWorld
  }
};
=======

export default {
  name: 'Home',
  components: {

  },
  methods: {
    jumpPage(){
      //跳转路由可以返回上一级
      // this.$router.push({
      //   path:'/about'
      // })

      //替换路由 不能返回上一级
      // this.$router.replace({
      //   path:'news'
      // })

      this.$router.go(-1)
    }
  },
}
>>>>>>> 6bf8714517698cba3c843e451acfb7d17c339c11
</script>
